package com.example.thesunofvn.smspro;

import java.util.ArrayList;
import java.util.List;

public class Smss {
	private List<Message> smss;
private String _address;
private int _threadId;
private String _readState; //"0" for have not read sms and "1" for have read sms

public Smss() {
	smss=new ArrayList<Message>();
}
public List<Message> getSmss() {
	return smss;
}
public void setSmss(Message sms) {
	this.smss.add(sms);
}
public String getAddress() {
	return _address;
}
public void setAddress(String address) {
	this._address = address;
}
public String getReadState() {
	return _readState;
}
public void setReadState(String _readState) {
	this._readState = _readState;
}
public int getThreadId() {
	return _threadId;
}
public void setThreadId(int _threadId) {
	this._threadId = _threadId;
}
@Override
public boolean equals(Object o) {
	// TODO Auto-generated method stub
	Smss tmp=(Smss)o;
	return this._address.equals(tmp.getAddress());
}
@Override
public int hashCode() {
	// TODO Auto-generated method stub
	return _threadId;
}
}
